<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model common\models\Company */

$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Companies', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="company-view">

   
 
<?php  echo $this->render('_search', ['model' => $searchModel]); ?>
<p>数据保存成功</p>
   <p>
        <?= Html::a('修改', ['update', 'id' => $model->id], ['class' => 'layui-btn']) ?>
        <?= Html::a('删除', ['delete', 'id' => $model->id], [
            'class' => 'layui-btn',
            'data' => [
                'confirm' => 'Are you sure you want to delete this item?',
                'method' => 'post',
            ],
        ]) ?>
    </p>
    
    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id',
            'company_name',
            'sort',
            'is_display',
            'created_at',
        ],
    ]) ?>

</div>
